package asa;

import java.util.*;

public class ExprList {

    public ExprList() {
        v = new ArrayList<Expr>();
    }

    public void addElement( Expr expr ) {
        v.add(expr);
    }


	public void genJava(PWInterface pw) {

        int size = v.size();
    	for ( Expr e : v ) {
    		e.genJava(pw, false);
            if ( --size > 0 )
              pw.print(", ");
        }
    }

    private ArrayList<Expr> v;

}
